﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Huirui.Cavan.Domain.Seedwork;

namespace Huirui.Cavan.Domain.MainBoundedContext.PurchaseModule
{
    public class PayDetail : Persistent<long>
    {
        protected Pay _pay;
        protected UnPay _unPay;
        protected decimal _amount;
        protected DateTime _certificateDate;

        public PayDetail()
        { 
        }

        public PayDetail(Pay pay, UnPay unPay, decimal amount, DateTime certificateDate, DateTime createDate, DateTime modifyDate, int editUser)
        {
            this._pay = pay;
            this._unPay = unPay;
            this._amount = amount;
            this._certificateDate = certificateDate;
            this._createDate = createDate;
            this._modifyDate = modifyDate;
            this._editUser = editUser;
        }

        public virtual Pay Pay
        {
            get { return _pay; }
            set { _pay = value; }
        }

        public virtual UnPay UnPay
        {
            get { return _unPay; }
            set { _unPay = value; }
        }

        public virtual decimal Amount
        {
            get { return _amount; }
            set { _amount = value; }
        }

        public virtual DateTime CertificateDate
        {
            get { return _certificateDate; }
            set { _certificateDate = value; }
        }
    }
}
